From 3a3398a77ba2c52866e582bd85d8980a972ebf95 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Wed, 18 Jul 2007 11:00:32 +0100 Subject: [PATCH] hvm: Only complain about short-period periodic tickers. Signed-off-by: Keir Fraser --- xen/arch/x86/hvm/vpt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/hvm/vpt.c b/xen/arch/x86/hvm/vpt.c index f7d9b91e04..8213005de2 100644 --- a/xen/arch/x86/hvm/vpt.c +++ b/xen/arch/x86/hvm/vpt.c @@ -261,13 +261,15 @@ void create_periodic_time( pt->enabled = 1; pt->pending_intr_nr = 0; - if ( period < 900000 ) /* < 0.9 ms */ + /* Periodic timer must be at least 0.9ms. */ + if ( (period < 900000) && !one_shot ) { gdprintk(XENLOG_WARNING, "HVM_PlatformTime: program too small period %"PRIu64"\n", period); - period = 900000; /* force to 0.9ms */ + period = 900000; } + pt->period = period; pt->vcpu = v; pt->last_plt_gtime = hvm_get_guest_time(pt->vcpu); -- 2.30.2